package cn.lili.modules.promotion.service;

import cn.lili.modules.promotion.entity.dos.TicketPoll;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TicketPollService extends IService<TicketPoll> {

    /**
     * 获取嘉宾列表
     * @param pollName
     * @return
     */
    List<TicketPoll> getList(String pollName, HttpServletRequest request);

    /**
     * 添加嘉宾
     * @param ticketPoll
     */
    void addTicketPoll (TicketPoll ticketPoll);

    /**
     * 添加票数
     * @param id
     * @param number
     */
    void addPoll (String id, Integer number);
}
